home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 4 / Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso / Development / Source / Chess++ ƒ / CChessPieces ƒ / CPawn.h < prev    next >
Text File  |  1993-04-25  |  553b  |  23 lines

  1. /****
  2.  * CPawn.h
  3.  *
  4.  *    Class representing the pawn.
  5.  *
  6.  *    Copyright © 1993 Steven J. Bushell. All rights reserved.
  7.  *
  8.  ****/
  9.  
  10. #define    _H_CPawn            /* Include this file only once */
  11. #include "CObject.h" 
  12.  
  13. class CChessBoard;
  14.  
  15. class CPawn : public CChessPiece {
  16. public:
  17.     void        IPawn(Boolean);
  18.     void        Draw(short rank, short file);
  19.     CIconHandle    GetCicnHandle(void);
  20.     short        BoardLocationValue(CChessBoard *aBoard, short rank, short file);
  21.     Boolean        IsValidMove(CChessBoard *aBoard, short newRank, short newFile);
  22.     void        RegisterMove(short rank, short file);
  23. };